<template>
  <div>HOME</div>
  <div>
    <button @click="toChild1">应用1</button>
    <button @click="toChild2">应用2</button>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()

function toChild1() {
  router.push('/child1/demo')
}

function toChild2() {
  router.push('/child2/page1')
}
</script>